package com.deloitte.payrollmgtsys.util;

public class GoogleAuthUtil {
	
	public static String getClientID(String domain) {
		if (domain.startsWith("activitiwfdb")) {
			return DashboardConstants.ACT_CLIENT_ID;
		} else if (domain.startsWith("pmckissflow")) {
			return DashboardConstants.PMC_CLIENT_ID;
		} else {
			return DashboardConstants.LOCAL_CLIENT_ID;
		}
	}
	
	public static String getClientSecret(String domain) {
		if (domain.startsWith("activitiwfdb")) {
			return DashboardConstants.ACT_CLIENT_SECRET;
		} else if (domain.startsWith("pmckissflow")) {
			return DashboardConstants.PMC_CLIENT_SECRET;
		} else {
			return DashboardConstants.LOCAL_CLIENT_SECRET;
		}
	}
	
	public static String getRedirectURL(String domain) {
		if (domain.startsWith("activitiwfdb")) {
			return DashboardConstants.ACT_REDIRECT_URL;
		} else if (domain.startsWith("pmckissflow")) {
			return DashboardConstants.PMC_REDIRECT_URL;
		} else {
			return DashboardConstants.LOCAL_REDIRECT_URL;
		}
	}
}
